package com.tpshion.cloud.auth.mapper;

import com.tpshion.cloud.auth.domain.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tpshion
 * @since 2021-01-20
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    /**
     * 查询角色拥有的权限id列表
     */
    List<String> getPermissionIds(@Param("roleId") String roleId);

}
